/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * StorageManagement.java
 *
 * Created on 2011-10-20, 16:54:44
 */
package JavaApplication1;

/**
 *
 * @author mengqingyi
 */
public class StorageManagement extends javax.swing.JFrame {
	// Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTable ImportListtable;
    private javax.swing.JTable checkResultTable;
    private javax.swing.JTable expotListTable;
    
    private javax.swing.JScrollPane ManagerNameInput;
    private javax.swing.JScrollPane checkGoodsIDInput;
    private javax.swing.JScrollPane checkResultList;
    private javax.swing.JScrollPane exportDayInput;
    private javax.swing.JScrollPane exportGoodsIDInput;
    private javax.swing.JScrollPane exportList;
    private javax.swing.JScrollPane export_YearInput;
    private javax.swing.JScrollPane importGoodsIDInput;
    private javax.swing.JScrollPane importList;
    
    private javax.swing.JLabel ManagerNameLabel;
    private javax.swing.JLabel dayLabel;
    private javax.swing.JLabel exportDateLabel;
    private javax.swing.JLabel monthLabel;
    private javax.swing.JLabel yearLabel;
    
    private javax.swing.JTextPane ManagerNameText;
    private javax.swing.JTextPane checkGoodsIDText;
    private javax.swing.JTextPane export_YearText;
    private javax.swing.JTextPane exportGoodsIDText;
    private javax.swing.JTextPane export_DayText;
    private javax.swing.JTextPane importGoodsIDText;
    
    private javax.swing.JTabbedPane basePanel;
    
    private javax.swing.JButton cancel1;
    private javax.swing.JButton cancel2;
    private javax.swing.JButton cancelExport;
    private javax.swing.JButton cancelImport;
    private javax.swing.JButton checkGoods;
    private javax.swing.JButton exportGoods;
    private javax.swing.JButton importGoods;
    private javax.swing.JButton yes1;
    private javax.swing.JButton yes2;
    
    private javax.swing.JPanel checkGoodIDPanel;
    private javax.swing.JPanel exportGoodsIDPanel;
    private javax.swing.JPanel exportListTable;
    private javax.swing.JPanel importPanel;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel importGoodsIDPanel;
    
    private javax.swing.JTextField checkGoodsIDLabel;
    private javax.swing.JTextField checkResultLabel;
    private javax.swing.JTextField importListLabel;
    private javax.swing.JTextField exportGoodsIDLabel;
    private javax.swing.JTextField exportGoodsLabel;
    private javax.swing.JTextField importGoodsIDLabel;
    
    private javax.swing.JComboBox export_MonthInput;
    // End of variables declaration//GEN-END:variables

    /** Creates new form StorageManagement */
    public StorageManagement() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        basePanel = new javax.swing.JTabbedPane();
        
        importPanel = new javax.swing.JPanel();
        importGoodsIDPanel = new javax.swing.JPanel();
        exportListTable = new javax.swing.JPanel();
        exportGoodsIDPanel = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        checkGoodIDPanel = new javax.swing.JPanel();
        
        yes1 = new javax.swing.JButton();
        cancel1 = new javax.swing.JButton();
        importGoods = new javax.swing.JButton();
        cancelImport = new javax.swing.JButton();
        exportGoods = new javax.swing.JButton();
        cancelExport = new javax.swing.JButton();
        yes2 = new javax.swing.JButton();
        cancel2 = new javax.swing.JButton();
        checkGoods = new javax.swing.JButton();
        
        importList = new javax.swing.JScrollPane();
        importGoodsIDInput = new javax.swing.JScrollPane();
        exportGoodsIDInput = new javax.swing.JScrollPane();
        exportList = new javax.swing.JScrollPane();
        export_YearInput = new javax.swing.JScrollPane();
        exportDayInput = new javax.swing.JScrollPane();
        ManagerNameInput = new javax.swing.JScrollPane();
        checkResultList = new javax.swing.JScrollPane();
        
        ImportListtable = new javax.swing.JTable();
        expotListTable = new javax.swing.JTable();
        checkResultTable = new javax.swing.JTable();
        
        importListLabel = new javax.swing.JTextField();
        importGoodsIDLabel = new javax.swing.JTextField();
        exportGoodsIDLabel = new javax.swing.JTextField();
        exportGoodsLabel = new javax.swing.JTextField();
        checkGoodsIDLabel = new javax.swing.JTextField();
        checkResultLabel = new javax.swing.JTextField();
        
        importGoodsIDText = new javax.swing.JTextPane();
        exportGoodsIDText = new javax.swing.JTextPane();
        export_YearText = new javax.swing.JTextPane();
        export_DayText = new javax.swing.JTextPane();
        ManagerNameText = new javax.swing.JTextPane();
        checkGoodsIDInput = new javax.swing.JScrollPane();
        checkGoodsIDText = new javax.swing.JTextPane();
        
        exportDateLabel = new javax.swing.JLabel();
        yearLabel = new javax.swing.JLabel();
        monthLabel = new javax.swing.JLabel();
        dayLabel = new javax.swing.JLabel();
        ManagerNameLabel = new javax.swing.JLabel();
        
        export_MonthInput = new javax.swing.JComboBox();
        
        
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("库存管理");
        setName("库存管理"); // NOI18N

        basePanel.setBackground(new java.awt.Color(211, 220, 249));
        basePanel.setAutoscrolls(true);
        basePanel.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        basePanel.setName("入库"); // NOI18N

        importPanel.setBackground(new java.awt.Color(211, 220, 249));

        yes1.setText("确认");

        cancel1.setText("取消");
        cancel1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel1ActionPerformed(evt);
            }
        });

        ImportListtable.setAutoCreateRowSorter(true);
        ImportListtable.setBackground(new java.awt.Color(204, 255, 255));
        ImportListtable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        ImportListtable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "商品名称", "商品标识", "商品价格", "商品描述", "入库数量", "生产日期", "报废日期", "成本价"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, true, true, true, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        ImportListtable.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        ImportListtable.setGridColor(new java.awt.Color(0, 51, 153));
        ImportListtable.setSurrendersFocusOnKeystroke(true);
        importList.setViewportView(ImportListtable);
        ImportListtable.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        ImportListtable.getColumnModel().getColumn(6).setHeaderValue("报废日期");
        ImportListtable.getColumnModel().getColumn(7).setResizable(false);
        ImportListtable.getColumnModel().getColumn(7).setHeaderValue("成本价");

        importListLabel.setBackground(new java.awt.Color(211, 220, 249));
        importListLabel.setFont(new java.awt.Font("华文彩云", 0, 18));
        importListLabel.setText("入库商品列表");
        importListLabel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                importListLabelActionPerformed(evt);
            }
        });

        importGoodsIDLabel.setBackground(new java.awt.Color(211, 220, 249));
        importGoodsIDLabel.setFont(new java.awt.Font("华文彩云", 0, 18));
        importGoodsIDLabel.setText("请输入入库商品标识");

        importGoodsIDPanel.setBackground(new java.awt.Color(204, 204, 255));
        importGoodsIDPanel.setFocusable(false);
        importGoodsIDPanel.setPreferredSize(new java.awt.Dimension(620, 100));

        importGoodsIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        importGoodsIDInput.setViewportView(importGoodsIDText);

        importGoods.setText("添加");

        cancelImport.setText("删除");

        javax.swing.GroupLayout importGoodsIDPanelLayout = new javax.swing.GroupLayout(importGoodsIDPanel);
        importGoodsIDPanel.setLayout(importGoodsIDPanelLayout);
        importGoodsIDPanelLayout.setHorizontalGroup(
            importGoodsIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, importGoodsIDPanelLayout.createSequentialGroup()
                .addContainerGap(447, Short.MAX_VALUE)
                .addComponent(importGoods)
                .addGap(114, 114, 114)
                .addComponent(cancelImport)
                .addGap(53, 53, 53))
            .addGroup(importGoodsIDPanelLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(importGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(319, Short.MAX_VALUE))
        );
        importGoodsIDPanelLayout.setVerticalGroup(
            importGoodsIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, importGoodsIDPanelLayout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(importGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
                .addGroup(importGoodsIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(importGoods)
                    .addComponent(cancelImport))
                .addGap(18, 18, 18))
        );

        javax.swing.GroupLayout importPanelLayout = new javax.swing.GroupLayout(importPanel);
        importPanel.setLayout(importPanelLayout);
        importPanelLayout.setHorizontalGroup(
            importPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(importPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(importPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(importPanelLayout.createSequentialGroup()
                        .addGap(216, 216, 216)
                        .addComponent(yes1)
                        .addGap(186, 186, 186)
                        .addComponent(cancel1))
                    .addGroup(importPanelLayout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addGroup(importPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(importPanelLayout.createSequentialGroup()
                                .addComponent(importGoodsIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                            .addGroup(importPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(importList, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 728, Short.MAX_VALUE)
                                .addComponent(importListLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(importGoodsIDPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 728, Short.MAX_VALUE)))))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        importPanelLayout.setVerticalGroup(
            importPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, importPanelLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(importGoodsIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40)
                .addComponent(importGoodsIDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)
                .addComponent(importListLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35)
                .addComponent(importList, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(47, 47, 47)
                .addGroup(importPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cancel1)
                    .addComponent(yes1))
                .addGap(39, 39, 39))
        );

        basePanel.addTab("入库", importPanel);

        exportListTable.setBackground(new java.awt.Color(211, 220, 249));

        exportGoodsIDLabel.setBackground(new java.awt.Color(211, 220, 249));
        exportGoodsIDLabel.setFont(new java.awt.Font("华文彩云", 0, 18));
        exportGoodsIDLabel.setText("请输入出库商品标识");
        exportGoodsIDLabel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exportGoodsIDLabelActionPerformed(evt);
            }
        });

        exportGoodsIDPanel.setBackground(new java.awt.Color(204, 204, 255));
        exportGoodsIDPanel.setFocusable(false);
        exportGoodsIDPanel.setPreferredSize(new java.awt.Dimension(620, 100));

        exportGoodsIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        exportGoodsIDInput.setViewportView(exportGoodsIDText);

        exportGoods.setText("添加");

        cancelExport.setText("删除");

        javax.swing.GroupLayout exportGoodsIDPanelLayout = new javax.swing.GroupLayout(exportGoodsIDPanel);
        exportGoodsIDPanel.setLayout(exportGoodsIDPanelLayout);
        exportGoodsIDPanelLayout.setHorizontalGroup(
            exportGoodsIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, exportGoodsIDPanelLayout.createSequentialGroup()
                .addContainerGap(447, Short.MAX_VALUE)
                .addComponent(exportGoods)
                .addGap(114, 114, 114)
                .addComponent(cancelExport)
                .addGap(65, 65, 65))
            .addGroup(exportGoodsIDPanelLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(exportGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(331, Short.MAX_VALUE))
        );
        exportGoodsIDPanelLayout.setVerticalGroup(
            exportGoodsIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, exportGoodsIDPanelLayout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(exportGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
                .addGroup(exportGoodsIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(exportGoods)
                    .addComponent(cancelExport))
                .addGap(18, 18, 18))
        );

        exportGoodsLabel.setBackground(new java.awt.Color(211, 220, 249));
        exportGoodsLabel.setFont(new java.awt.Font("华文彩云", 0, 18));
        exportGoodsLabel.setText("出库商品列表   ");

        expotListTable.setAutoCreateRowSorter(true);
        expotListTable.setBackground(new java.awt.Color(204, 255, 255));
        expotListTable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        expotListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "商品名称", "商品标识", "商品价格", "商品描述", "库存数量", "出库数量", "报废数量", "出库原因"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, true, true, true, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        expotListTable.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        expotListTable.setGridColor(new java.awt.Color(0, 51, 153));
        expotListTable.setSurrendersFocusOnKeystroke(true);
        exportList.setViewportView(expotListTable);
        expotListTable.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        expotListTable.getColumnModel().getColumn(6).setHeaderValue("报废日期");
        expotListTable.getColumnModel().getColumn(7).setResizable(false);
        expotListTable.getColumnModel().getColumn(7).setHeaderValue("成本价");

        exportDateLabel.setText("出库日期：");

        export_YearText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        export_YearInput.setViewportView(export_YearText);

        yearLabel.setText("年");

        export_MonthInput.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04，05，06，07，08，09，10，11，12" }));

        monthLabel.setText("月");

        export_DayText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        exportDayInput.setViewportView(export_DayText);

        dayLabel.setText("日");

        ManagerNameLabel.setText("出库人：");

        ManagerNameText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        ManagerNameInput.setViewportView(ManagerNameText);

        yes2.setText("确认");

        cancel2.setText("取消");

        javax.swing.GroupLayout exportListTableLayout = new javax.swing.GroupLayout(exportListTable);
        exportListTable.setLayout(exportListTableLayout);
        exportListTableLayout.setHorizontalGroup(
            exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(exportListTableLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(exportGoodsIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(exportList, javax.swing.GroupLayout.DEFAULT_SIZE, 740, Short.MAX_VALUE)
                    .addGroup(exportListTableLayout.createSequentialGroup()
                        .addComponent(exportGoodsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(exportDateLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(export_YearInput, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(yearLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(export_MonthInput, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(monthLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(exportDayInput, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(dayLabel)
                        .addGap(73, 73, 73)
                        .addComponent(ManagerNameLabel)
                        .addGap(18, 18, 18)
                        .addComponent(ManagerNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(exportGoodsIDPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 740, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, exportListTableLayout.createSequentialGroup()
                .addGap(217, 217, 217)
                .addComponent(yes2)
                .addGap(232, 232, 232)
                .addComponent(cancel2)
                .addGap(208, 208, 208))
        );
        exportListTableLayout.setVerticalGroup(
            exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(exportListTableLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(exportGoodsIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40)
                .addComponent(exportGoodsIDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(71, 71, 71)
                .addGroup(exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(exportGoodsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(exportDateLabel))
                    .addComponent(export_YearInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(yearLabel)
                    .addComponent(export_MonthInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(monthLabel)
                    .addGroup(exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(dayLabel)
                        .addComponent(ManagerNameLabel))
                    .addComponent(exportDayInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ManagerNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(35, 35, 35)
                .addComponent(exportList, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)
                .addGroup(exportListTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cancel2)
                    .addComponent(yes2))
                .addGap(34, 34, 34))
        );

        basePanel.addTab("出库", exportListTable);

        jPanel3.setBackground(new java.awt.Color(211, 220, 249));

        checkGoodsIDLabel.setBackground(new java.awt.Color(211, 220, 249));
        checkGoodsIDLabel.setFont(new java.awt.Font("华文彩云", 0, 18)); // NOI18N
        checkGoodsIDLabel.setText("请输入商品标识");
        checkGoodsIDLabel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkGoodsIDLabelActionPerformed(evt);
            }
        });

        checkGoodIDPanel.setBackground(new java.awt.Color(204, 204, 255));
        checkGoodIDPanel.setFocusable(false);
        checkGoodIDPanel.setPreferredSize(new java.awt.Dimension(620, 100));

        checkGoodsIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        checkGoodsIDInput.setViewportView(checkGoodsIDText);

        checkGoods.setText("查询库存可用天数");

        javax.swing.GroupLayout checkGoodIDPanelLayout = new javax.swing.GroupLayout(checkGoodIDPanel);
        checkGoodIDPanel.setLayout(checkGoodIDPanelLayout);
        checkGoodIDPanelLayout.setHorizontalGroup(
            checkGoodIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(checkGoodIDPanelLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(checkGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(331, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, checkGoodIDPanelLayout.createSequentialGroup()
                .addContainerGap(440, Short.MAX_VALUE)
                .addComponent(checkGoods)
                .addGap(171, 171, 171))
        );
        checkGoodIDPanelLayout.setVerticalGroup(
            checkGoodIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(checkGoodIDPanelLayout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(checkGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                .addComponent(checkGoods)
                .addGap(21, 21, 21))
        );

        checkResultLabel.setBackground(new java.awt.Color(211, 220, 249));
        checkResultLabel.setFont(new java.awt.Font("华文彩云", 0, 18));
        checkResultLabel.setText("查询结果");

        checkResultTable.setAutoCreateRowSorter(true);
        checkResultTable.setBackground(new java.awt.Color(204, 255, 255));
        checkResultTable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        checkResultTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "商品名称", "商品标识", "商品价格", "商品描述", "预计天数", "预计报废率"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        checkResultTable.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        checkResultTable.setGridColor(new java.awt.Color(0, 51, 153));
        checkResultTable.setSurrendersFocusOnKeystroke(true);
        checkResultList.setViewportView(checkResultTable);
        checkResultTable.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(checkGoodsIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkResultLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkGoodIDPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 740, Short.MAX_VALUE)
                    .addComponent(checkResultList, javax.swing.GroupLayout.DEFAULT_SIZE, 740, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(checkGoodsIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40)
                .addComponent(checkGoodIDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(71, 71, 71)
                .addComponent(checkResultLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(checkResultList, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(126, 126, 126))
        );

        basePanel.addTab("库存分析", jPanel3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 776, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)
        );

        basePanel.getAccessibleContext().setAccessibleName("入库");

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void importListLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_importListLabelActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_importListLabelActionPerformed

private void cancel1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancel1ActionPerformed

private void exportGoodsIDLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportGoodsIDLabelActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_exportGoodsIDLabelActionPerformed

private void checkGoodsIDLabelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkGoodsIDLabelActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_checkGoodsIDLabelActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(StorageManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(StorageManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(StorageManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(StorageManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new StorageManagement().setVisible(true);
            }
        });
    }
}
